import 'package:json_annotation/json_annotation.dart';

part 'qr_statistics.g.dart';

@JsonSerializable()
class QrStatistics extends Object {
  @JsonKey(name: 'alipayPayCountOrder')
  int alipayPayCountOrder;

  @JsonKey(name: 'alipayRefundCountOrder')
  int alipayRefundCountOrder;

  @JsonKey(name: 'alipayTotalFee')
  int alipayTotalFee;

  @JsonKey(name: 'countOrder')
  int countOrder;

  @JsonKey(name: 'totalFee')
  int totalFee;

  @JsonKey(name: 'wechatPayCountOrder')
  int wechatPayCountOrder;

  @JsonKey(name: 'wechatRefundCountOrder')
  int wechatRefundCountOrder;

  @JsonKey(name: 'wechatTotalFee')
  int wechatTotalFee;

  QrStatistics(
    this.alipayPayCountOrder,
    this.alipayRefundCountOrder,
    this.alipayTotalFee,
    this.countOrder,
    this.totalFee,
    this.wechatPayCountOrder,
    this.wechatRefundCountOrder,
    this.wechatTotalFee,
  );

  factory QrStatistics.fromJson(Map<String, dynamic> srcJson) => _$QrStatisticsFromJson(srcJson);

  Map<String, dynamic> toJson() => _$QrStatisticsToJson(this);
}
